<script setup lang="ts">
import { navigateTo } from '@tarojs/taro';
import HOME_ONE_ALARM from '/@/assets/image/icon/home-one-alarm.png';
import HOME_FAULT_REPORT from '/@/assets/image/icon/home-fault-report.png';
import HOME_QUILT_CLOTHING_MANAGE from '/@/assets/image/icon/home-quilt-clothing-manage.png';
import HOME_CENTER_DELIVER from '/@/assets/image/icon/home-center-deliver.png';
</script>
<template>
  <view class="home-staff-other">
    <nut-row :gutter="10">
      <nut-col :span="12" @click="navigateTo({ url: '/pages/common/building/index' })">
        <view class="home-staff-other__item">
          <image class="home-staff-other__img" :src="HOME_ONE_ALARM" />
          <view>
            <view class="home-staff-other__item__title">一键报警</view>
            <view class="home-staff-other__item__content">紧急事件快速处理</view>
          </view>
        </view>
      </nut-col>
      <nut-col :span="12" @click="navigateTo({ url: '/pages/work-order/edit/index' })">
        <view class="home-staff-other__item">
          <image class="home-staff-other__img" :src="HOME_FAULT_REPORT" />
          <view>
            <view class="home-staff-other__item__title">故障上报</view>
            <view class="home-staff-other__item__content">设备资产故障维修</view>
          </view>
        </view>
      </nut-col>
    </nut-row>
    <nut-row :gutter="10">
      <nut-col :span="12" @click="navigateTo({ url: '/pages/common/building/index' })">
        <view class="home-staff-other__item">
          <image
            class="home-staff-other__img"
            @click="navigateTo({ url: '/pages/video-monitor/list/index' })"
            :src="HOME_QUILT_CLOTHING_MANAGE"
          />
          <view>
            <view class="home-staff-other__item__title">被服管理</view>
            <view class="home-staff-other__item__content">被服收发/洗涤/报废</view>
          </view>
        </view>
      </nut-col>
      <nut-col :span="12" @click="navigateTo({ url: '/pages/deliver/edit/index' })">
        <view class="home-staff-other__item">
          <image class="home-staff-other__img" :src="HOME_CENTER_DELIVER" />
          <view>
            <view class="home-staff-other__item__title">中央运送</view>
            <view class="home-staff-other__item__content">运送文件/样品/病患</view>
          </view>
        </view>
      </nut-col>
    </nut-row>
  </view>
</template>
<style lang="scss">
.home-staff-other {
  margin-bottom: 20px;

  &__item {
    border-radius: 20px;
    background-color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;

    &__title {
      font-size: 26px;
      font-weight: bold;
      margin-bottom: 10px;
    }
    &__content {
      color: #999;
      font-size: 20px;
    }
  }

  &__img {
    width: 100px;
    height: 100px;
    margin: 12px;
  }
}
</style>
